package com.sinder.campus_prophet.core.enums;

import java.util.HashMap;
import java.util.Map;

/**
 * 时间固定参数
 *
 * @author sinder
 * Date 2023/3/26/11:11
 **/
public class TimeBar {
    // 定义周次对应
    public final static String[] XQ = new String[]{"星期一", "星期二", "星期三", "星期四", "星期五", "星期六", "星期日"};
    public final static String[] START_TIME = new String[]{
            "08:20", "09:15", "10:20", "11:15",
            "14:00", "14:55", "16:00", "16:55",
            "18:40", "19:25", "20:20", "21:05"
    };
    public final static String[] END_TIME = new String[]{
            "09:05", "10:00", "11:05", "12:00",
            "14:45", "15:40", "16:45", "17:40",
            "19:25", "20:00", "21:05",  "21:40"
    };
    //上课节次对应时间
    public final static Map<String, String> JCDM_CODE = new HashMap<>();
    static {
        JCDM_CODE.put("0102", "08:20-10:00");
        JCDM_CODE.put("0304", "10:20-12:00");
        JCDM_CODE.put("0506", "14:00-15:40");
        JCDM_CODE.put("0708", "16:00-17:40");
        JCDM_CODE.put("0910", "18:40-20:00");
        JCDM_CODE.put("1112", "20:20-21:40");
    }

    public final static String[][] MAPS = new String[][]{{"0102", "a"}, {"0304", "b"}, {"0506", "c"}, {"0708", "d"}, {"0910", "e"}, {"1112", "f"}};
    public final static Map<String, String> JCDM_MAP = new HashMap<>();
    static {
        JCDM_MAP.put("a", "0102");
        JCDM_MAP.put("b", "0304");
        JCDM_MAP.put("c", "0506");
        JCDM_MAP.put("d", "0708");
        JCDM_MAP.put("e", "0910");
        JCDM_MAP.put("f", "1112");
    }

}